package com.weixing.mall.provider.controller.front;

import com.weixing.mall.base.wrapper.Result;
import com.weixing.mall.base.wrapper.ResultUtil;
import com.weixing.mall.core.support.BaseController;
import com.weixing.mall.provider.service.IActivityGoodsService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author wx
 * @Date 2020/1/9 10:43
 * @Version 1.0
 */
@RestController
@RequestMapping("front/act/goods")
@Api(value = "前端:活动商品Api",tags = "前端:活动商品")
public class FrontActivityGoodsController extends BaseController {

    @Autowired
    private IActivityGoodsService activityGoodsService;

    @ApiOperation(value = "加载前台代理商商品")
    @GetMapping("agentGoods")
    public Result agentGoods(){
        return ResultUtil.success(activityGoodsService.agentGoods(initMpPage()));
    }
}
